<!DOCTYPE html>
<meta http-equiv="Expires" CONTENT="0">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">
<html><head>

<title>我的店铺</title>

<meta content="telephone=no" name="format-detection" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">

<link rel="stylesheet" href="../../resource/weuimin.css"/>
<!-- 微信引入 -->
<script type="text/javascript" src="../../resource/jweixin1_002.js"></script>
<script type="text/javascript" src="../../resource/jweixin1.js"></script>
<script src="../../resource/jquery1.js"></script>
<script src="../../resource/qrcode.js"></script>
<script src="../../script/api.js"></script>
<link rel="stylesheet" href="../../resource/jinsuistyle.css" />
<link type="text/css" rel="stylesheet" href="../../resource/fapiao.css">
<script type="text/javascript" charset="UTF-8" src="../../script/naes.js"></script>
<script src="../../script/constants.js"></script>

</head>
<body style="font-family: '微软雅黑'">
	<div style="background: #104E8B" id="jsheader">
			<nav id="jsnav">
					<a id="jsleft" tapmode="" onclick="api.closeWin();">
							<span>返回</span>
					</a>
					<div id="jsmiddle">
							<strong id="jstitle">我的店铺</strong>
					</div>
					<a id="jsright">
						<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
					</a>
			</nav>
	</div>
	<div style="height: 20px"></div>

	<div id="shop_box" style="text-align:center;margin: 3%;display: table;width: 94%;font-family: '微软雅黑'">
		<!--<div style="background:#104E8B;float: left;overflow:hidden;margin: 5px;border-radius:20px" class="FP_box clearfix">
			<div class="fl"><img style="width:100px;height:100px;margin: 5px" src="../../image/ewm.png" /></div>
			<div style="margin: 5px;width: 100%">
				<div><font size="4">陈弟杰的收银台</font></div>
				<div  style="float: left" >
					<font style="margin-bottom: 5px;height: 20px">等级:</font>
					<img style="width: 20px;height: 20px;margin:0" src="../../image/jhzf/star.png" />
						 <img style="width: 20px;height: 20px;margin:0" src="../../image/jhzf/star.png" />
						 <img style="width: 20px;height: 20px;margin:0" src="../../image/jhzf/star.png" />
					
				</div>
				
				<div><font size="4">No.12345678911111</font></div>
				<div  style="float: left;height:30px">
					<font size="4" style="margin-top: 5px;height: 30px;position: relative; top: -30%;transform: translateY(-50%);">支付方式:</font>
					<img style="width: 30px;height: 30px;margin:0" src="../../image/jhzf/ylzf.png" />&nbsp;
					<img style="width: 30px;height: 30px;margin:0" src="../../image/jhzf/wxzf.png" />&nbsp;
					<img style="width: 30px;height: 30px;margin:0" src="../../image/jhzf/zfbzf.png" />
				</div>
			</div>
		</div>
		
		<div style="background:#104E8B;float: left;overflow:hidden;margin: 5px;border-radius:20px" class="FP_box clearfix">
			 <div class="fl"><img style="width:100px;height:100px;margin: 5px" src="../../image/ewm.png" /></div>
			<div style="margin: 5px;width: 100%">
				<div><font size="4">陈弟杰的收银台</font></div>
				<div  style="float: left" >
					<font style="margin-bottom: 5px;height: 20px">等级:</font>
					<img style="width: 20px;height: 20px;margin:0" src="../../image/jhzf/star.png" />
						 <img style="width: 20px;height: 20px;margin:0" src="../../image/jhzf/star.png" />
						 <img style="width: 20px;height: 20px;margin:0" src="../../image/jhzf/star.png" />
					
				</div>
				
				<div><font size="4">No.12345678911111</font></div>
				<div  style="float: left;height:30px">
					<font size="4" style="margin-top: 5px;height: 30px;position: relative; top: -30%;transform: translateY(-50%);">支付方式:</font>
					<img style="width: 30px;height: 30px;margin:0" src="../../image/jhzf/ylzf.png" />&nbsp;
					<img style="width: 30px;height: 30px;margin:0" src="../../image/jhzf/wxzf.png" />&nbsp;
					<img style="width: 30px;height: 30px;margin:0" src="../../image/jhzf/zfbzf.png" />
				</div>
			</div> 
		</div>
		
		<div style="background:#104E8B;float: left;overflow:hidden;margin: 5px;border-radius:20px" class="FP_box clearfix">
			<div class="fl"><img style="width:100px;height:100px;margin: 5px" src="../../image/ewm.png" /></div>
			<div style="margin: 5px;width: 100%">
				<div><font size="4">陈弟杰的收银台</font></div>
				<div  style="float: left" >
					<font style="margin-bottom: 5px;height: 20px">等级:</font>
					<img style="width: 20px;height: 20px;margin:0" src="../../image/jhzf/star.png" />
						 <img style="width: 20px;height: 20px;margin:0" src="../../image/jhzf/star.png" />
						 <img style="width: 20px;height: 20px;margin:0" src="../../image/jhzf/star.png" />
					
				</div>
				
				<div><font size="4">No.12345678911111</font></div>
				<div  style="float: left;height:30px;">
					<font size="4" style="margin-top: 5px;height: 30px;position: relative; top: -40%;transform: translateY(-50%);">支付方式:</font>
					<img style="width: 30px;height: 30px;margin:0" src="../../image/jhzf/ylzf.png" />&nbsp;
					<img style="width: 30px;height: 30px;margin:0" src="../../image/jhzf/wxzf.png" />&nbsp;
					<img style="width: 30px;height: 30px;margin:0" src="../../image/jhzf/zfbzf.png" />
				</div>
			</div>
		</div>
	</div>
	-->
	<div style="height: 20px"></div>
	

	
	</div>
	<div id="null_indicator" class="FP_btn">
		<a style="display:inline-block;display:-moz-inline-stack;width: 90%;color: #888;" href="javascript:;" onclick="addInfo()" tapmode="presshover">
			<strong>+</strong>&nbsp;新增店铺信息
		</a>
	</div>
	<div class="weui-tab">
		<div class="page__ft">
		<p style="margin-bottom: 10px;text-align: center"><a style="color:#777;font-size:12px">四川航天金穗高技术有限公司</a></p>
		</div>
	</div>
	

<script type="text/javascript" src="../../resource/jweixin1002.js"></script>
<script type="text/javascript" src="../../resource/jweixin1.js"></script>
<script type="text/javascript">
     window.apiready = function(){
     	api.parseTapmode();
     	api.addEventListener({
			name: 'addStore'
		}, function(ret, err) {
			window.location.reload();
		});
     	//var id = $api.getStorage('loginid');
     	var bdid = $api.getStorage("loginid");
     	
		var callback = function(ret, err){
			console.info(JSON.stringify(ret));
			if(ret){
			if(ret.flag=="Y"){
			var data = ret.data;
	     	for(var i=0;i<data.length;i++){
	     		var s1=";"; var s2 = ";"; var s3 = ";";
	     		var p2 = ""; var p3 = "";
	     		if(data[i].MERLVL=="01"){
	     			s2 += "display:none;";
	     			s3 += "display:none;";
	     		}
	     		if(data[i].MERLVL=="02"){
	     			s3 += "display:none;";
	     		}
	     		if(data[i].WXALIPAYID==null||data[i].WXALIPAYID==""||data[i].WXALIPAYID=="undefined"){
	     			p2="_n";
	     			p3="_n";
	     		}
	     		// MERAUTHID IDENAUTHID 为空 1星亮 只亮银联
		     // WXALIPAYID 为空 微信支付宝不点亮
				var s = '<div onclick="shopinfo(/"'+ret.list[i].MERID+'/")" tapmode="presshover" style="height:100px;text-align:left;margin 0 auto;width:94%;background:#104E8B;float: left;overflow:hidden;margin-top:10px;border-radius:20px" class="FP_box clearfix">'+
						'<div onclick="showEwm('')" class="fl"><img style="width:95px;height:95px;margin: 5px" src="../../image/ewm.png" /></div>'+
						'<div style="margin: 5px;width: 100%">'+
						'<div><font size="4">'+data[i].MERNAME+'</font></div>'+
						'<div  style="float: left;height:20px" >'+
						'<font size="4" style="margin-bottom: 5px;height: 20px;top: -14%;position: relative;transform: translateY(-50%);">等级:</font>'+
						'<img style="padding-top;4px;width: 20px;height: 20px;margin:0'+s1+'" src="../../image/jhzf/star.png" />'+
						'<img style="padding-top;4px;width: 20px;height: 20px;margin:0'+s2+'" src="../../image/jhzf/star.png" />'+
						'<img style="padding-top;4px;width: 20px;height: 20px;margin:0'+s3+'" src="../../image/jhzf/star.png" />'+
						'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+
						'</div>'+
						'<div style="height:30px"><font size="4">No.'+data[i].MERID+'</font></div>'+
						'<div  style="float: left;height:20px">'+
						'<font size="4" style="height: 20px;position: relative; top: 0%;transform: translateY(-50%);">支付方式:</font>&nbsp;&nbsp;'+
						'<img style="width: 30px;height: 30px;margin:0 auto;position: relative; top: 110%;transform: translateY(-50%);" src="../../image/jhzf/ylzf.png" />&nbsp;&nbsp;'+
						'<img style="width: 26px;height: 26px;margin:0 auto;padding-bottom:3px;position: relative; top: 110%;transform: translateY(-50%);" src="../../image/jhzf/wxzf'+p2+'.png" />&nbsp;&nbsp;'+
						'<img style="width: 24px;height: 24px;margin:0 auto;padding-bottom:4px;position: relative; top: 110%;transform: translateY(-50%);" src="../../image/jhzf/zfbzf'+p3+'.png" />'+
						'</div>'+
					    '</div>'+
						'</div>';
				$("#shop_box").append(s);
	     	}
		     
		}else{
		  api.alert({msg: ret.msg});
		}
		}else{
		  api.alert({msg: JSON.stringify(err)});
		}
  	  	}
  	  var content = {"id":bdid};
   	  apiAjax(JSON.stringify(content),url.selelctshop,callback);
     }
     
     function shopinfo(merid){
         api.openWin({
	         name: 'storeManage',
	         url: './storeManage.html',
	         pageParam: {
					merid : merid
				}
         });
     }
     
     function addInfo(){
         api.openWin({
	         name: 'storeInfo',
	         url: './storeInfo.html'
         });
     }
</script>
</body></html>
